package com.qn.wechat.dao.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="qrchannel")
public class QrchannelEntity {

    /**
     *
     */
    @Id
    @Column(name="Id",nullable=false)
    private Integer id;

    /**
     *
     */
    @Column(name="WId")
    private Integer wid;

    /**
     *
     */
    @Column(name="ChannelName")
    private String channelname;

    /**
     *
     */
    @Column(name="ChannelContent")
    private String channelcontent;

    @Column(name = "NewsArticle")
    private String newsArticle;
    /**
     *
     */
    @Column(name="Status")
    private Integer status;

    /**
     *
     */
    @Column(name="FansCount",nullable=false)
    private Integer fanscount=0;

    /**
     *
     */
    @Column(name="ChannelType")
    private String channeltype;


    public String getNewsArticle() {
        return newsArticle;
    }

    public void setNewsArticle(String newsArticle) {
        this.newsArticle = newsArticle;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id){
        this.id=id;
    }

    /**
     * 获取
     * @return Id -
     */
    public Integer getId(){
        return this.id;
    }

    /**
     * 设置
     * @param wid
     */
    public void setWid(Integer wid){
        this.wid=wid;
    }

    /**
     * 获取
     * @return WId -
     */
    public Integer getWid(){
        return this.wid;
    }

    /**
     * 设置
     * @param channelname
     */
    public void setChannelname(String channelname){
        this.channelname=channelname;
    }

    /**
     * 获取
     * @return ChannelName -
     */
    public String getChannelname(){
        return this.channelname;
    }

    /**
     * 设置
     * @param channelcontent
     */
    public void setChannelcontent(String channelcontent){
        this.channelcontent=channelcontent;
    }

    /**
     * 获取
     * @return ChannelContent -
     */
    public String getChannelcontent(){
        return this.channelcontent;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(Integer status){
        this.status=status;
    }

    /**
     * 获取
     * @return Status -
     */
    public Integer getStatus(){
        return this.status;
    }

    /**
     * 设置
     * @param fanscount
     */
    public void setFanscount(Integer fanscount){
        this.fanscount=fanscount;
    }

    /**
     * 获取
     * @return FansCount -
     */
    public Integer getFanscount(){
        return this.fanscount;
    }

    /**
     * 设置
     * @param channeltype
     */
    public void setChanneltype(String channeltype){
        this.channeltype=channeltype;
    }

    /**
     * 获取
     * @return ChannelType -
     */
    public String getChanneltype(){
        return this.channeltype;
    }


    @Override
    public String toString(){
        StringBuilder sb = new StringBuilder();
        sb.append("Qrchannel[");
        sb.append("id=");
        sb.append(id);
        sb.append(",wid=");
        sb.append(wid);
        sb.append(",channelname=");
        sb.append(channelname);
        sb.append(",channelcontent=");
        sb.append(channelcontent);
        sb.append(",status=");
        sb.append(status);
        sb.append(",fanscount=");
        sb.append(fanscount);
        sb.append(",channeltype=");
        sb.append(channeltype);
        sb.append("]");
        return sb.toString();
    }
}